package com.oak.interviewdemo.common;

/**
 * Created by admin on 2018/3/7.
 */
public enum BaseResultStatus {

    SUCCESS("OK", "查询成功"),
    ERROR("ERROR", "查询失败"),
    BIZ_ERROR("BIZ_ERROR", "业务异常"),
    ERROR_REQUEST("ERROR_REQUEST", "错误的请求"),
    FORBIDDEN("FORBIDDEN", "无权限,请联系管理员"),
    ERROR_TOTP_VERIFY("ERROR_TOTP_VERIFY", "验证失败"),
    NOT_FIND_DINGTALK_ORGEMAIL("NOT_FIND_DINGTALK_ORGEMAIL", "没有绑定企业邮箱"),
    ERROR_USERNAME("ERROR_USERNAME", "用户名错误"),
    ERROR_PASSWORD("ERROR_PASSWORD", "用户密码错误"),
    TOKEN_EXPIRED("TOKEN_EXPIRED", "token过期"),
    NOT_FOUND("NOT_FOUND", "未查询到数据"),
    SERVER_ERROR("SERVER_ERROR", "服务器异常"),
    DATABASE_ERROR("DATABASE_ERROR", "数据库异常"),
    USER_NOT_FIND("USER_NOT_FIND", "用户不存在"),
    PRIVILEGE_NOT_FIND("PRIVILEGE_NOT_FIND", "权限不存在"),
    ROLE_NOT_FIND("ROLE_NOT_FIND", "角色不存在"),
    USER_DELETED("USER_DELETED", "用户已经被删除"),
    USER_NOT_FINISH("USER_NOT_FINISH", "用户信息未补全"),
    USER_NOT_AVAILABLE("USER_NOT_AVAILABLE", "用户不可用"),
    NUM_ERROR("NUM_ERROR", "车辆总数为零"),
    USER_NOT_FOUNT_DINGTALK("USER_NOT_FOUNT_DINGTALK", "用户不存在"),
    MESSAGE_TEMPLATE("MESSAGE_TEMPLATE","未查到此预警短信模板"),
    NOT_EXIST_AREA("NOT_EXIST_AREA","地区不存在"),
    NOT_EXIST_POINT_TYPE("NOT_EXIST_POINT_TYPE","点位类型不存在"),
    NOT_STATISTIC_CAR("NOT_STATISTIC_CAR","未统计到车辆"),
    STATUS_ERRO("STATUS_ERRO","服务器繁忙"),
    NOT_SERACH_CAR("NOT_SEARCH_CAR", "未查询到区域下车辆"),
    NOT_EXIST_CAR("NOT_EXIST_CAR","车辆不存在"),
    NOT_EXIST_FENCE("NOT_EXIST_FENCE","未查询到围栏预警信息");

    private String code;
    private String message;

    private BaseResultStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
